<template>
    <div class="header">
      <div class="header-left">
        <span class="iconfont">&#xe624;</span>
      </div>
      <div class="header-input">
        <span class="iconfont">&#xe632;</span>
        输入城市/景点/游玩主题
      </div>
      <router-link to="/city">
        <div class="header-right">
          {{this.$store.state.city}}
          <span class="iconfont">&#xe600;</span>
        </div>
      </router-link>
    </div>
</template>

<script>
export default {
  name: 'TravelHeader'
}
</script>

<style scoped lang="stylus">
  @import '~css/varibles.styl'
  .header
    height: $headerHeight
    line-height $headerHeight
    display: flex
    padding: 0 .2rem
    background: $bgColor
    color: #ffffff
    .header-left
      margin-right: .2rem
    .header-input
      flex: 1
      background: #ffffff
      border-radius: .1rem
      margin-top: .12rem
      height: .62rem
      line-height .62rem
      color: #ccc
      padding: 0 .2rem
    .header-right
      margin-left: .2rem
      color: #ffffff
</style>
